
#ifndef __READER__H_
#define __READER__H_

#include "ISO14443p3a.h"
#include "CardPort.h"
#include "CardPrivate.h"

#define TAG_TypeV		5
enum {
	TAG_T_Unknown = 0,
	TAG_T_Mifare = 1,
	TAG_T_Ultralight = 2,
	TAG_T_14443B,
	TAG_T_14443A_CPU,
	TAG_T_15693,
	TAG_T_Felica,
	TAG_T_LF,
};

//card SN

typedef struct {
	uint8_t std;		//协议类型
	uint8_t type;
	uint8_t info;		//是否内容
	uint8_t nlen;		//sn length
	uint8_t num[64];	//sn number
	uint16_t ilen;
	uint8_t ibuf[1024 * 2];
}CSN_T;


//初始化
void Reader_Init(void);

int Reader_ConfigService(void);

int Reader_CSN_Service(CSN_T* csn);

#endif 


